package com.example.his.api.db.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.his.api.db.pojo.GoodsEntity;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

public interface GoodsDao extends BaseMapper<GoodsEntity> {

    public ArrayList<HashMap> searchByPage(Map param);

    public int myInsert(GoodsEntity entity);

    public HashMap searchById(Map param);

    public int myUpdate(GoodsEntity entity);

    public GoodsEntity searchEntityById(int id);
    public int updateCheckup(Map param);

    public ArrayList<String> searchImageByIds(Integer[] ids);
    public int deleteByIds(Integer[] ids);

    ArrayList<HashMap> searchByPartIdLimit4(int partId);

    public ArrayList<HashMap> searchListByPage(Map param);

    HashMap searchSnapshotNeededById(int goodsId);

    public int updateSalesVolume(int id);
}




